package com.snjx.netty.chat.service.Impl;

import com.snjx.netty.chat.bean.req.UserReq;
import com.snjx.netty.chat.dao.UserDao;
import com.snjx.netty.chat.entity.User;
import com.snjx.netty.chat.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserImpl
 * @Author yunlong.zhang
 * @Date 2018/11/19
 * @since: JDK 1.8
 * @Description //TODO
 **/
@Service
public class UserImpl implements UserService {
    @Autowired
    private  UserDao userDao;
    private User gainUserInfo(UserReq req){
        User user =userDao.selectByPrimaryKey(req.getId());
      /*  BeanUtils.copyProperties();*/
      return user;
    }
}
